﻿namespace State
{
    public class Work
    {
        private State current;
        public Work()
        {
            current = new WorkState();
        }

        private int hour;
        public int Hour
        {
            get { return hour; }
            set { hour = value; }
        }

        private bool finish = false;
        public bool Finish
        {
            get { return finish; }
            set { finish = value; }
        }

        public void SetState(State s)
        {
            current = s;
        }

        public void DoWork()
        {
            current.DoWork(this);
        }

    }
}
